<?php
	include_once dirname(dirname(dirname(__FILE__))).'/inc/bootConfig.php';
	include_once '../checkLogin.php';
	include_once '../Public/login/checkUserGrade.php';
	
	userLimit($username,1);
	
	$id = getRequest('id');
	
	if(empty($id)){
		jstop("参数不正确");
	}
	$userGrade = User_User::getAdminUserInfoById($id,'z_userGrade');
	if($userGrade<1){
		jstop('您不能删除超级管理员');
	}
	$rs = User_User::delAdminUser($id);
	
	if($rs){
		jstop('删除操作成功');
	}else{
		jstop("数据库异常，请重新操作");
	}
	